/* ===========================
   CSS VARIABLES & RESET
=========================== */
:root {
  --background: #ffffff;
  --foreground: #1a1a1a;
  --primary: #8b6f47;
  --primary-foreground: #ffffff;
  --secondary: #f5f0ea;
  --muted-foreground: #6b6b6b;
  --border: #e5e0d8;
  --card: #ffffff;
  --accent: #f0ebe3;
  --radius: 0.5rem;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ===========================
   ACCESSIBILITY
=========================== */
.skip-link {
  position: absolute;
  top: -9999px;
  left: -9999px;
  z-index: 999;
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 500;
}

.skip-link:focus {
  top: 1rem;
  left: 1rem;
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ===========================
   FORM GROUPS
=========================== */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 500;
  color: var(--foreground);
  font-size: 0.875rem;
}

.form-group label span {
  color: #e74c3c;
}

/* ===========================
   TYPOGRAPHY
=========================== */
.font-serif {
  font-family: 'Playfair Display', serif;
}

/* ===========================
   LAYOUT UTILITIES
=========================== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px)  { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

/* ===========================
   BUTTONS
=========================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  height: 2.5rem;
  padding: 0 2rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, opacity 0.2s, border-color 0.2s;
  white-space: nowrap;
  text-decoration: none;
}

.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  background-color: color-mix(in srgb, var(--primary) 90%, black);
}

.btn-white {
  background-color: #ffffff;
  color: #000000;
  font-size: 1rem;
  border: 2px solid #ffffff;
}

.btn-white:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

.btn-white:focus-visible {
  border-color: #000000;
}

.btn-outline-white {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
  font-size: 1rem;
}

.btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.btn-outline-white:focus-visible {
  outline-color: #ffffff;
}

.btn-sm {
  height: 2rem;
  padding: 0 0.75rem;
  font-size: 0.875rem;
  width: 100%;
  border-radius: var(--radius);
}

.btn-icon {
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  background: none;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s, border-color 0.2s;
  color: var(--foreground);
}

.btn-icon:hover {
  background-color: var(--accent);
}

.btn-icon:focus-visible {
  border-color: var(--primary);
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ===========================
   HEADER
=========================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

@media (min-width: 768px) {
  .header-inner { height: 5rem; }
}

.header-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  color: var(--foreground);
}

@media (min-width: 768px) {
  .header-logo { font-size: 1.875rem; }
}

.header-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .header-nav { display: flex; }
}

.header-nav a {
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
  transition: color 0.2s;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
}

.header-nav a:hover {
  color: var(--foreground);
  background-color: color-mix(in srgb, var(--primary) 10%, transparent);
}

.header-nav a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.menu-toggle {
  display: inline-flex;
}

@media (min-width: 768px) {
  .menu-toggle { display: none; }
}

/* ===========================
   HERO SECTION
=========================== */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 4rem;
  padding-top: 5rem;
}

@media (min-width: 768px) {
  .hero {
    min-height: 100vh;
    padding-bottom: 6rem;
  }
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
}

.hero-text {
  max-width: 42rem;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.25rem;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin-bottom: 1rem;
  line-height: 1.2;
}

@media (min-width: 768px) { .hero-title { font-size: 3rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 3.75rem; } }

.hero-subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 36rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .hero-subtitle { font-size: 1.125rem; }
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .hero-buttons { flex-direction: row; }
}

.hero-scroll {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.scroll-indicator {
  width: 1.25rem;
  height: 2rem;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 9999px;
  display: flex;
  justify-content: center;
}

.scroll-dot {
  width: 0.25rem;
  height: 0.5rem;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 9999px;
  margin-top: 0.375rem;
  animation: bounce 1s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* ===========================
   SECTION BASE
=========================== */
.section {
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .section { padding: 6rem 0; }
}

.section-lg {
  padding: 5rem 0;
}

@media (min-width: 768px) {
  .section-lg { padding: 7rem 0; }
}

.bg-white   { background-color: var(--background); }
.bg-cream   { background-color: var(--secondary); }

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.875rem;
  color: var(--foreground);
  margin-bottom: 1rem;
}

@media (min-width: 768px) { .section-title { font-size: 2.25rem; } }
@media (min-width: 1024px) { .section-title { font-size: 3rem; } }

.section-desc {
  color: var(--muted-foreground);
  max-width: 42rem;
  margin: 0 auto;
  line-height: 1.6;
}

.section-cta {
  margin-top: 2.5rem;
  text-align: center;
}

/* ===========================
   FULL-WIDTH IMAGE BLOCK
=========================== */
.image-block {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0.75rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.1);
}

.image-block + .image-block {
  margin-top: 2.5rem;
}

.image-block img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ===========================
   PRODUCT GRID
=========================== */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}

.product-card {
  background-color: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color 0.3s;
}

.product-card:hover {
  border-color: color-mix(in srgb, var(--primary) 30%, transparent);
}

.product-card:hover .product-img {
  transform: scale(1.05);
}

.product-img-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: var(--secondary);
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.product-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.5rem;
  background-color: rgba(255, 255, 255, 0.9);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
  border-radius: calc(var(--radius) / 2);
}

.product-info {
  padding: 1rem;
}

.product-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.125rem;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}

.product-price {
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

/* ===========================
   ABOUT SECTION
=========================== */
.about-inner {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: var(--muted-foreground);
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 1.875rem;
  color: var(--primary);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ===========================
   CONTACT SECTION
=========================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background-color: color-mix(in srgb, var(--primary) 10%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  color: var(--primary);
}

.contact-label {
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}

.contact-value {
  color: var(--muted-foreground);
}

/* ===========================
   FORM
=========================== */
.form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 500;
  color: var(--foreground);
  font-size: 0.875rem;
}

.form-group label span {
  color: #e74c3c;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--card);
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: var(--foreground);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-input {
  height: 2.25rem;
}

.form-textarea {
  min-height: 4rem;
  resize: none;
  padding: 0.5rem 0.75rem;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent);
}

.form-input:invalid:not(:placeholder-shown),
.form-textarea:invalid:not(:placeholder-shown) {
  border-color: #e74c3c;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--muted-foreground);
}

/* ===========================
   FOOTER
=========================== */
.footer {
  background-color: var(--foreground);
  color: var(--background);
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.footer-desc {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.footer-heading {
  font-weight: 500;
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-links a {
  text-decoration: underline;
  padding: 0.25rem 0;
  border-radius: 2px;
  transition: color 0.2s, background-color 0.2s;
}

.footer-links a:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
}

.footer-links a:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 2px;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s, box-shadow 0.2s;
  border: 2px solid transparent;
  cursor: pointer;
}

.social-link:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.social-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 2px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}
